/**
 * 
 */
package br.unifor.mia.cd.middleware.encrypt.algorithm;

/**
 * @author arthurlandim
 *
 */
public enum CryptorAlgorithms {
	
	DUMP(DumpCrypt.class),
	MD5(MD5.class);
	
	private Cryptor cryptor;

	CryptorAlgorithms(Class<?> cryptor) {
		try {
			this.cryptor = (Cryptor) cryptor.newInstance();
		} catch (Exception e) {
		}
	}

	/**
	 * @return the cryptor
	 */
	public Cryptor getCryptor() {
		return cryptor;
	}

}
